package com.bai.edu.service;

import com.bai.edu.entity.Course;
import com.bai.edu.entity.frontvo.CourseFrontVo;
import com.bai.edu.entity.vo.CourseInfoVo;
import com.bai.edu.entity.vo.CoursePublishVo;
import com.bai.edu.entity.vo.CourseWebVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author bai
 * @since 2023-07-25
 */
public interface CourseService extends IService<Course> {

    //添加课程基本信息
    void saveCourseInfo(CourseInfoVo courseInfoVo);

    //根据id查询课程信息
    CourseInfoVo getCourseInfoById(String courseId);
    //修改课程信息
    void updateCourseInfoVo(CourseInfoVo courseInfoVo);

    CoursePublishVo publishCourseInfo(String id);

    void removeCourse(String courseId);
    //条件查询带分页查询
    Map<String, Object> getCourseFrontList(Page<Course> coursePage, CourseFrontVo courseFrontVo);
    //根据课程id查询课程所有信息
    CourseWebVo getBaseCourseInfo(String courseId);
}
